package com.mk.es.service.transport.entity;

import java.io.Serializable;

/**
 * Es查询结果项
 * 这里为以后扩展高亮等一些数学才这么设计的
 */
public class EsItem<T> implements Serializable {
    private static final long serialVersionUID = -7047037081506758394L;

    private T object; //真正的对象

    public EsItem() {
    }

    public EsItem(T object) {
        this.object = object;
    }

    public T getObject() {
        return object;
    }

    public void setObject(T object) {
        this.object = object;
    }

    @Override
    public String toString() {
        return "EsItem{" + "object= \n" + object + "\n}";
    }
}
